package com.bulletelc.apollopre.module.main.center.afterSale.detail;

import com.bulletelc.apollopre.entity.ServiceOrderGoodBean;
import com.bulletelc.apollopre.framework.IPresenter;
import com.bulletelc.apollopre.framework.IView;

import org.json.JSONObject;

import java.util.List;

/**
 * Created by CX on 2018/1/27.
 */

public class ServiceOrderDetailContract{

    interface View extends IView {
        void onSuccessGetServiceOrderDetail(List<ServiceOrderGoodBean> sogList, JSONObject obj);
        void onErrorGetServiceOrderDetail(String msg);
        void onFailGetServiceOrderDetail(String msg);

        void onSuccessPostConfirm(boolean state);
        void onErrorPostConfirm(String msg);
        void onFailPostConfirm(String msg);
    }

    interface Presenter extends IPresenter<View> {
        void getServiceOrderDetail(String id);
        void postConfirm(String id);
    }
}
